#ifndef RUNNER_H
#define RUNNER_H

#include <QThread>

class Runner : public QThread
{
    Q_OBJECT
public:
    Runner();
    virtual ~Runner();
    void cont();
    int  delay();
    QString delayStr();
    void step();
    void run();

    void setDelay(int ms);
    void setRunning(bool enable);
    bool running();

private:
    bool threadRunning;
    int  msdelay;

signals:
    void rundone();
    void execute();

public slots:
    void stop();
};

#endif // RUNNER_H
